package com.sample.springbatch.scheduler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 实例任务
 *
 * @author zwg
 * @date 2019-05-22 9:41
 **/

@Component
public class DemoTask {

    Logger logger = LoggerFactory.getLogger(DemoTask.class);

    public void demo(){
        logger.info("this is {}.{} run.","DemoTask","demo");
    }

    public void demo1(){
        logger.info("this is {}.{} run.","DemoTask","demo1");
    }

}
